package com.ddogring.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ddogring.business.domain.Commodity;

import java.util.List;

/**
 * @BelongsProject: eshop
 * @BelongsPackage: com.ddogring.business.service
 * @Author: DdogRing
 * @CreateTime: 2023-01-30  11:25
 * @Description: TODO
 * @Version: 1.0
 */
public interface ICommodityService extends IService<Commodity> {

    /**
     * @description: 查询商品列表
     * @author: DdogRing
     * @date: 2023/1/31 14:44
     * @param: [commodity]
     * @return: java.util.List<com.ddogring.business.domain.Commodity>
     **/
    List<Commodity> selectCommodityList(Commodity commodity);

    /**
     * @description: 查询商品详情
     * @author: DdogRing
     * @date: 2023/2/1 16:17
     * @param: [id]
     * @return: com.ddogring.business.domain.Commodity
     **/
    Commodity getCommodityInfo(Integer id);

    /**
     * @description: 修改商品库存
     * @author: DdogRing
     * @date: 2023/2/8 17:50
     * @param: [shopId]
     * @return: int
     **/
    int updateRemainder(Integer shopId);

    /**
     * @description: 商品编辑
     * @author: DdogRing
     * @date: 2023/2/9 10:49
     * @param: [commodity]
     * @return: int
     **/
    int editCommodity(Commodity commodity);
}
